/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.hajo.jsfs.bb;

import edu.chl.hajo.jsfs.mb.ShopBean;
import edu.chl.hajo.shop.core.Product;
import javax.enterprise.context.ConversationScoped;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author hajo
 */
@Named("deleteProduct")
@ConversationScoped  // NOTE enterprise package, else disaster!!!
public class deleteProduct  extends ConversationalBase {


     
    @Override
    protected void execute() {
        

        long id= getId();
      
        
        getProductCatalogue().remove(id);
        
        //throw new UnsupportedOperationException("Not supported yeti!."); //To change body of generated methods, choose Tools | Templates.
    }
    

}
